import java.util.Arrays;
import java.util.Scanner;

public class Teest {
    public static void main(String[] args) {


        int[] a={1,9,2,3,7,4,5};
        Arrays.sort(a);
        System.out.println(Arrays.toString(a));
    }
}
